import { createApp } from 'vue'
import App from './App.vue'



const app = createApp(App)

//路由
import router from './router'
app.use(router)

//vuex
import store from './store'
app.use(store)

//引入UI
import Varlet from '@varlet/ui'
import '@varlet/ui/es/style.js'
import '@varlet/touch-emulator'
app.use(Varlet)


//自定义样式，必须在组件引入后，否则css3变量从新定义不生效
import './app.css'
import './sass/cluster.scss'

//国际化
import { Locale } from '@varlet/ui'
import enUS from './locale/en'
import zhCN from './locale/zh'
Locale.add('en-US', enUS)
Locale.add('zh-CN', zhCN)
Locale.use('zh-CN')

//日期格式转换
import dayjs from "dayjs"
app.config.globalProperties.dayjs = dayjs



//公共方法
import dox from './tools/do'
app.config.globalProperties.dox = dox
import config from './tools/config'
app.config.globalProperties.config = config

// import tips from './tools/tips'
// app.config.globalProperties.tips = tips

app.mount('#app')
